<template>
  <div class="footer">
    <h1>我是Footer</h1>
    <p>Count的值是{{ count1 }}</p>
    <h2>电影列表 <button @click="getMovieList">获取</button></h2>
    <ul>
      <li v-for="movie in movieList" :key="movie.tvId">{{movie.albumName}}</li>
    </ul>
  </div>
</template>

<script>
import { mapActions, mapState } from 'vuex';


export default {
  name: "Footer",
  computed:{
    ...mapState('count',{count1:'count',movieList:'movieList'})
  },
  methods:{
    ...mapActions('count',['getMovieList'])
  }
};
</script>

<style scoped>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>